Political Memory
[updated on 22-09-2023]

Interesting fact: when a politician looks into the mirror, his reflection is not mirrored. Political Memory is back, now with 12 politicians and 7 random events!
A desktop-only version of the game is available on itch, which will be updated most frequently. A mobile version can be played locally. This is the legacy edition, not containing random events.
[read more]Why and how
I had wanted to revisit Political Memory for a while to add some more complexity to its gameplay in the form of random events.
I also wanted the game to feel more like a stand-alone app, instead of the rather basic webpage it was.
Finally, game progress needed to be made persistent by saving it in browser local storage.
Doing this and learning React at the same time seemed like a win/win.
The biggest challenge here was the data being passed around between React components. As React works asynchronously, it was difficult to predict if the data inside components was up-to-date (for example if 2 different components were to trigger a render of the parent component at the same time).
[view on github]